<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
<head>
	<base href="<%=basePath%>">
	<title>年级列表</title>
	<link href="background/css/css.css" rel="stylesheet" type="text/css" />
	<script src="background/js/back.js" type="text/javascript"></script>
	<link rel="stylesheet" href="css/mainlist.css" type="text/css"></link>
	<link rel="stylesheet" href="css/backeditor.css" type="text/css"></link>
	<link rel="stylesheet" href="css/backmain.css" type="text/css"></link>
    <script type="text/javascript" src="js/back/backlist.js"></script>
</head>

<body>
 <div class="right_div">
       <div class="right_top">
    	 <div class="titlebt1">年级列表</div>
       </div>
       <div class="right_main">
       <div><span class="inputmessage">${message}</span></div>
       <form id="myform" name="myform" method="post" action="deleteGrades.action">
       <%--删除数据后，用于查询动态信息数据的参数 --%>
       <input type="hidden" name="groupOfGrade.currentPage" value="${groupOfGrade.currentPage}" />
       <input type="hidden" name="groupOfGrade.type" value="${groupOfGrade.type}" />
        <table class="list_maintable">
           	 <tr>
               <td valign="bottom" align="right" colspan="3">
               <span class="STYLE1">
               	<a href="javascript:delRows('deleteGrades.action');" class="STYLE1">删除</a>
               </span>
               </td>
             </tr>
              <tr>
              	 <td width="5%" height="20" bgcolor="d3eaef" class="STYLE10">
	       			 <div align="center">
	        		 <input type="checkbox" name="checkAll" id="checkAll" onclick="doCheck();" />
	       			 </div>
	    		</td>
                <td width="85" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">年级名称</span></div></td>
        		<td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">基本操作</span></div></td>
              </tr>
              <s:iterator value="groupOfGrade.shGrade">
     		  <tr>
       			 <td height="20" align="center">
        		  <input type="checkbox" name="nos" value="${gid}" />
       			 </td>
       			 <td height="20" class="STYLE19" align="left">
        			<s:property value="gname" />
        		 </td>
       			 <td height="20" align="center" class="STYLE21">
        			<a href="javascript:doEdit('queryByGradeId.action?no=${gid}')">编辑</a>|
        			<a href="javascript:doDel('deleteGrades.action?no=${gid}')">删除</a>        	
       			 </td>
     		 </tr>
     		 </s:iterator>
             <tr>
             <td colspan="3">
               <table class="list_bottom_maintable">
                <tr>
             	 <td width="33%">
        			<div align="left">
        			  <span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;
        		   		共有<strong><s:property value="groupOfGrade.allRow"/></strong> 条记录，
        			    当前第<strong><s:property value="groupOfGrade.currentPage"/></strong> 页，
        			    共 <strong><s:property value="groupOfGrade.totalPage"/></strong> 页
        		     </span>
        	       </div>
                 </td>
                 <td width="67%">
            	      <div align="right" class="STYLE22">
            	     	[<a href="groupOfGrade.action?page=<s:property value="groupOfGrade.currentPage"/>&param=forward">上一页</a>]&nbsp;|
    					[<a href="groupOfGrade.action?page=<s:property value="groupOfGrade.currentPage"/>&param=backward">下一页</a>]
                      </div>
                 </td>
                </tr>
             </table></td>
            </tr>
         </table>
     </form>
     </div>
</div>
</body>
</html>